﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QS.Logic.Objects;
using QS.Game.Logic.Objects.common;
using QS.Game.Renderer;
using Microsoft.Xna.Framework;

namespace QS.Game.Logic.Objects
{
    [RendererAttribute(typeof(QLaserBulletRenderer))]
    class QLaserBullet : QPhysicsObject
    {
        private DateTime born;

        public QLaserBullet()
        {
            born = DateTime.Now;
        }

        public Boolean IsDead
        {
            get
            {
                return (DateTime.Now - born).TotalSeconds > 5;
            }
        }
    }
}
